<?php
include "dbconnect.php";
$username=$_GET["hiredusername"];
$openingid=$_GET["openingid"];
$con=mysql_connect($dbHost,$dbUserAndName,$dbPass);
mysql_select_db($_DB_NAME,$con);
$result=mysql_query("delete from hire where username='".$username."' and openingid='".$openingid."'");
if($result==false)
{
	die(mysql_error());
}
mysql_close($con); 
echo "Unassigned Successfully.";
echo "<script>setTimeout(\"location.href = 'hireView.php?fromHire=1';\",2000);</script>";
?>